package com.cms.controller.front.member;

import com.cms.controller.front.BaseController;
import com.cms.entity.Log;
import com.cms.entity.Member;
import com.cms.entity.Order;
import com.cms.routes.RouteMapping;

/**
 * @author ：chenxf
 * @date ：Created in 2019/8/6 10:41
 * @description：资金日志
 * @modified By：
 * @version: $
 */
@RouteMapping(url = "/member/log")

public class LogController extends BaseController {

    /**
     * 列表
     */
    public void list(){
        Integer pageNumber = getParaToInt("pageNumber");
        String status = getPara("status");
        if(pageNumber==null){
            pageNumber=1;
        }
        int pageSize = 20 ;
        Member currentMember = getCurrentMember();

        setAttr("page", new Log().dao().findUserPage(pageNumber,pageSize,currentMember.getId().toString(),status));
        render("/templates/"+getTheme()+"/"+getDevice()+"/memberLogList.html");
    }
}
